<?php 
App::import('Vendor','xtcpdf');  
$tcpdf = new XTCPDF(); 
$textfont = 'freesans'; // looks better, finer, and more condensed than 'dejavusans' 

$tcpdf->SetAuthor("Centro de idiomas universidad de los llanos"); 
$tcpdf->SetMargins(30,60,30,true);
$tcpdf->SetAutoPageBreak( true ); 
 
$tcpdf->AddPage(); 

$tcpdf->SetTextColor(0, 0, 0); 
$tcpdf->SetFont($textfont,'B',14); 
$tcpdf->SetTextColor(0, 0, 0); 
$tcpdf->Write(30, $titulodoc, '', 0, 'C', true, 0, false, false, 0);

$tcpdf->SetFont($textfont,'empty string',12); 
$tcpdf->Write(7, $params, '', 0, 'J', true, 0, false, false, 0);
$imgdata = base64_decode("iVBORw0KGgoAAAANSUhEUgAAAM4AAABgCAIAAADaa9oNAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAjxSURBVHhe7Vs7duJKEBVvLZhgjleAV4CdTOTU
mQhN8rIJJ5sEQpw5dTSJYQVmBXMcGPbC639Xtbol4TEFj3OVGEnd9bl1u9Sf8mC/31e4gMDxEfjn
+CqgAQhoBEA18EAIAVBNCGioAdXAASEEQDUhoKEGVAMHhBAA1YSAhhpQDRwQQgBUEwIaakA1cEAI
AVBNCGioAdXAASEEQDUhoKEGVAMHhBAA1YSAhhpQDRwQQgBUEwIaakA1cEAIAVBNCGioAdXAASEE
QDUhoKEGVAMHhBAA1YSAhhpQDRwQQgBUEwIaakA1cEAIAVBNCGioAdXAASEEQDUhoKEGVAMHhBAA
1YSAhhpQDRwQQgBUEwIaakA1cEAIAVBNCGioAdXAASEEQDUhoKEGVAMHhBAA1YSAhhpQDRwQQgBU
EwIaakA1cEAIAVBNCGioAdXAASEEQDUhoKEGVAMHhBAA1YSAhhpQDRwQQgBUEwIaakA1cEAIAVBN
CGioAdXAASEEBkJ6oOZyEdjv932cG/Rs10cW2gCBFgTwAQU9hBAA1YSAhhpQDRwQQgBUEwIaakA1
cEAIAU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